#include <iostream>
using namespace std;
int main()
{
    int numberOfBars;              // 糖的数量
    double oneWeight, totalWeight; // 每块糖的重量和总的重量
    cout << "输入一包糖中有多少块糖\n";
    cout << "每块糖的重量是多少\n";
    cout << "输入后请按下Enter键\n";
    cin >> numberOfBars;
    cin >> oneWeight;

    totalWeight = numberOfBars * oneWeight;
    cout << numberOfBars << "块糖\n";
    cout << oneWeight << "是一块糖的重量\n";
    cout << "所有糖的总重量为" << totalWeight << "\n";
    cout << "或许吃苹果会健康一些";
    return 0;
}